import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import './plugins/element.js'//用于element-ui的部分引入

//全部引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

//引入全局样式
import './assets/css/global.css'
//引入iconfont
import './assets/iconfont/iconfont.css'


//导入axios
import axios from "axios";
//挂载axios
Vue.prototype.$http = axios;
//设置访问路径
axios.defaults.baseURL="http://localhost:9000/"

import JsonExcel from 'vue-json-excel'
Vue.component('downloadExcel', JsonExcel)

Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
